package com.zjj.spring.read.xml.aop.proxy.jdkproxy;

import com.zjj.spring.read.xml.aop.proxy.HelloService;
import com.zjj.spring.read.xml.aop.proxy.staticproxy.HelloServiceImpl;

public class JdkProxyTest {

	public static void main(String[] args) {

		DynamicProxy<HelloService> dynamicProxy = new DynamicProxy<HelloService>(new HelloServiceImpl());
		HelloService helloService = dynamicProxy.newProxy();
		
		helloService.sayHello("micky");
		System.out.println( helloService.sayWelcome("zzz" , "welcome") );
	}
	
}
